<%@taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<fmt:setBundle basename="Inscripcion_Resources"/>
<script type="text/javascript">

    function accionBoton(acc, codigo)
    {
        document.formularioEvaluarFicha.accion.value = acc;
        document.formularioEvaluarFicha.codigo.value = codigo;
        document.formularioEvaluarFicha.submit();
    }

</script>

<form name="formularioEvaluarFicha" method="post" action="evaluador.do">
<input type="hidden" name="accion" value=""/>
<input type="hidden" name="codigo" value=""/>

<table border="0" valign="top">
    <tr>
        <th width="19%" rowspan="28" valign="top" bordercolor="#E5E5D4" bgcolor="#E5E5D4" scope="row">
            <jsp:include page="/WEB-INF/jsp/evaluador/menu_evaluador.jsp"/>
        </th>
        <td width="10%" align="left">&nbsp;</td>
        <td width="80%" align="left">&nbsp;</td>
        <td width="10%" align="left">&nbsp;</td>
    </tr>
        <tr class="labelFase" bgcolor="#E5E5D4">
        <td colspan="3" height="19" class="confirmationTitleLabel" align="center">Evaluar Ficha de Inscripcion</td>
    </tr>
    <tr>
        <td colspan="3" height="19">&nbsp;</td>
    </tr>
    <tr>
        <td colspan="3">
            <display:table name="postulantes" id="postulante" pagesize="10" requestURI="evaluador.do?accion=listarPostulantes" class="displayTable" style="width:100%" excludedParams="*" >
                <display:column style="width:5%" title="ID.">
                    <input type="hidden" class="Ctrl-HiS" name="codigoPostulante" value="${postulante.codigoPostulante}">
                    <center><c:out value="${postulante.codigoPostulante}"/></center>
		</display:column>

		<display:column style="width:35%" title="Nombre" >
                    <c:out value="${postulante.apellidoPaterno} ${postulante.apellidoMaterno}, ${postulante.nombre}"/>
		</display:column>

                <display:column style="width:10%" title="Aprobar">
                    <center><select name="aprobar" class="TxAr-HiS">
                        <option value="E">Pendiente</option>
                        <option value="A">Aprobado</option>
                        <option value="O">Observado</option>
                    </select></center>
		</display:column>
                <display:column style="width:10%" title="Fase">
                    <center><c:out value="${postulante.fase}"/></center>
		</display:column>
                <c:choose>
                    <c:when test="${postulante.fase eq '2'}">
                        <display:column style="width:10%" title="Ver">
                            <center><a href="file.do?accion=descargar&codigoPostulante=${postulante.codigoPostulante}"><img src="images/download_manager.gif" width="15" height="15" alt="" /></a></center>
                        </display:column>
                    </c:when>
                    <c:otherwise>
                        <display:column style="width:10%" title="Ver">
                            <center><a href="javascript:accionBoton('verpdf', ${postulante.codigoPostulante} )"><img src="images/acroread.gif" width="15" height="15" alt="" /></a></center>
                        </display:column>
                   </c:otherwise>
                </c:choose>
                <display:column style="width:30%" title="Observar">
                    <center><input type="textarea" class="Ctrl-HiS" name="observar"></center>
		</display:column>
            </display:table>
        </td>
    </tr>
    <tr>
        <td colspan="3" height="19">&nbsp;</td>
    </tr>
    <tr>
        <td colspan="3" height="19">&nbsp;</td>
    </tr>
    <tr>
        <td colspan="3" height="19">&nbsp;</td>
    </tr>
    <tr>
        <td colspan="3" height="19">&nbsp;</td>
    </tr>
    <tr>
        <td colspan="3" height="19">&nbsp;</td>
    </tr>
    <tr>
        <td align="right" colspan="3" height="19">
            <input type="button" class="Ctrl-HiS" value="Guardar" onclick="javascript:accionBoton('guardar')">
            <input type="button" class="Ctrl-HiS" value="Finalizar" onclick="javascript:accionBoton('finalizar')">
            <input type="button" class="Ctrl-HiS" value="Salir" onclick="location.href='login.do?accion=logout'">
        <td>
    </tr>
</table>
</form>